using System;
using Ferpect.ComponentModel;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace $safeprojectname$
{
    public partial class MainMenu : Screen
    {
        public MainMenu()
        {
            InitializeComponent();

            this.description.Text = this.menu.Value;
        }

        public override void Draw(GameTime gameTime)
        {
            this.GraphicsDevice.Clear(Color.Black);
            base.Draw(gameTime);
        }

        private void OnMenuIndexChanged(object sender, EventArgs e)
        {
            this.description.Text = this.menu.Value;
        }

        private void OnCancel(object sender, Ferpect.ComponentModel.InputEventArgs e)
        {
            this.ScreenManager.Call("exitConfirmation1", this.DrawOrder + 1, false);
        }

        private void OnScreenFocusChanged(object sender, EventArgs e)
        {
            // Disable the input handler when this screen doesn't have focus. For
            // example, when the exit confirmation screen is on top.
            this.menuInputHandler1.Enabled = this.HasFocus;
        }
    }
}
